package com.mmgc.shop.activity

import android.app.Activity
import android.content.Intent
import android.os.Bundle

class SchemeActivity : Activity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mainActivity.finish()
        val bundle = Bundle()
        bundle.putString("schemeData", intent?.data?.toString())
        val intent = Intent(this, MainActivity::class.java)
        intent.putExtras(bundle)
        startActivity(intent)
        finish()
    }

    override fun onPause() {
        super.onPause()
        finish()
    }
}